package com.iplant.aps.service.po.wms;

import java.io.Serializable;
import java.util.Calendar;

/**
 * MES退料单明细
 *
 * @author YouWang·Peng
 * 2022-3-24 11:53:26
 */
public class MESMaterialReturnItem implements Serializable {

    /**
     * 序列化
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public int ID = 0;
    /**
     * 退料单ID
     */
    public int ReturnID = 0;
    /**
     * 物料ID
     */
    public int MaterialID = 0;
    /**
     * 物料编号
     */
    public String MaterialNo = "";
    /**
     * 物料名称
     */
    public String MaterialName = "";
    /**
     * 数量
     */
    public double RFQTY = 0.0;
    /**
     * 生产日期
     */
    public Calendar ProductTime = Calendar.getInstance();
    /**
     * 生产日期翻译
     */
    public String ProductTimeText = "";
    /**
     * 库存地点
     */
    public String Stock = "";
    /**
     * 供应商
     */
    public String Supplier = "";
    /**
     * 所属项目(WBS元素)
     */
    public String WBSNo = "";
    /**
     * 日期批次
     */
    public String BatchNo = "";
    /**
     * 序列号/铁总唯一码
     */
    public String SerialNo = "";
    /**
     * 评估类型
     */
    public String AssessmentType = "";
    /**
     * 工序ID
     */
    public int PartPointID = 0;
    /**
     * 工序编码
     */
    public String PartPointCode = "";
    /**
     * 工序名称
     */
    public String PartPointName = "";
    /**
     * 行号
     */
    public String RowNo = "";
    /**
     * 必换偶换
     */
    public int ReplaceType = 0;
    public String ReplaceTypeText = "";
    /**
     * 必修偶修
     */
    public int OutSourceType = 0;
    public String OutSourceTypeText = "";
    /**
     * 退料原因
     */
    public String BackReason = "";
    // 辅助属性
    /**
     * 需求单号
     */
    public String DemandNo = "";
    public String ProductNo = "";
    public String LineName = "";
    public String CustomerName = "";
    public String PartNo = "";
    public String PartName = "";
    /**
     * BOM用量
     */
    public double BOMNumber = 0;
    /**
     * 配料数量
     */
    public double PLNumber = 0;
    /**
     * 配送单ID
     */
    public int DemandID = 0;
    /**
     * 配送单明细ID
     */
    public int DemandItemID = 0;
    /**
     * 单位ID
     */
    public int UnitID = 0;
    /**
     * 单位文本
     */
    public String UnitText = "";
    /**
     * 退料清单ID/工艺变更ID
     */
    public int ReturnListID = 0;
    /**
     * 质检人ID
     */
    public int InspectorID = 0;
    /**
     * 质检人名称
     */
    public String Inspector = "";
    /**
     * 不合格品数量
     */
    public double BadNumber = 0;
    /**
     * 合格数量
     */
    public double GoodNumber = 0;
    /**
     * 不合格原因
     */
    public String BadReason = "";
    /**
     * 质检时刻
     */
    public Calendar InspectTime = Calendar.getInstance();

    /**
     * 大小量纲
     */
    public String Groes = "";

    /**
     * 工业标准
     */
    public String Normt = "";
    /**
     * 台车bom行ID
     */
    public int APSBOMItemNum = 0;

    /**
     * 生产厂家
     */
    public String ProductName = "";
    /**
     * 失效日期
     */
    public String ExpirationDate = "";
    /**
     * 入库日期
     */
    public String WarehousingDate = "";

    /**
     * 供应商批次号
     */
    public String SupplierLotNumber = "";

    /**
     * 退料库存ID
     */
    public int ItemStockID = 0;

    public MESMaterialReturnItem() {
        super();
        Calendar wBaseTime = Calendar.getInstance();
        wBaseTime.set(2000, 0, 1, 0, 0, 0);
        InspectTime = wBaseTime;
    }

    public MESMaterialReturnItem(int iD, int returnID, int materialID, String materialNo, String materialName,
                                 double rFQTY, Calendar productTime, String stock, String supplier, String wBSNo,
                                 String batchNo,
                                 String serialNo, String assessmentType, int partPointID, String partPointCode,
                                 String partPointName,
                                 String rowNo, int wReplaceType, int wOutSourceType, String wBackReason,
                                 int wDemandID, double wBOMNumber,
                                 double wPLNumber) {
        super();
        ID = iD;
        ReturnID = returnID;
        MaterialID = materialID;
        MaterialNo = materialNo;
        MaterialName = materialName;
        RFQTY = rFQTY;
        ProductTime = productTime;
        Stock = stock;
        Supplier = supplier;
        WBSNo = wBSNo;
        BatchNo = batchNo;
        SerialNo = serialNo;
        AssessmentType = assessmentType;
        PartPointID = partPointID;
        PartPointCode = partPointCode;
        PartPointName = partPointName;
        RowNo = rowNo;
        ReplaceType = wReplaceType;
        OutSourceType = wOutSourceType;
        BackReason = wBackReason;
        BOMNumber = wBOMNumber;
        PLNumber = wPLNumber;
        DemandID = wDemandID;
        Calendar wBaseTime = Calendar.getInstance();
        wBaseTime.set(2000, 0, 1, 0, 0, 0);
        InspectTime = wBaseTime;
    }

    public int getAPSBOMItemNum() {
        return APSBOMItemNum;
    }

    public void setAPSBOMItemNum(int APSBOMItemNum) {
        this.APSBOMItemNum = APSBOMItemNum;
    }

    public String getGroes() {
        return Groes;
    }

    public void setGroes(String groes) {
        Groes = groes;
    }

    public String getNormt() {
        return Normt;
    }

    public void setNormt(String normt) {
        Normt = normt;
    }

    public int getID() {
        return ID;
    }

    public int getReturnID() {
        return ReturnID;
    }

    public int getMaterialID() {
        return MaterialID;
    }

    public String getMaterialNo() {
        return MaterialNo;
    }

    public String getMaterialName() {
        return MaterialName;
    }

    public double getRFQTY() {
        return RFQTY;
    }

    public Calendar getProductTime() {
        return ProductTime;
    }

    public String getStock() {
        return Stock;
    }

    public String getSupplier() {
        return Supplier;
    }

    public String getWBSNo() {
        return WBSNo;
    }

    public String getBatchNo() {
        return BatchNo;
    }

    public String getSerialNo() {
        return SerialNo;
    }

    public String getAssessmentType() {
        return AssessmentType;
    }

    public int getPartPointID() {
        return PartPointID;
    }

    public String getPartPointCode() {
        return PartPointCode;
    }

    public String getPartPointName() {
        return PartPointName;
    }

    public String getRowNo() {
        return RowNo;
    }

    public void setID(int iD) {
        ID = iD;
    }

    public void setReturnID(int returnID) {
        ReturnID = returnID;
    }

    public void setMaterialID(int materialID) {
        MaterialID = materialID;
    }

    public void setMaterialNo(String materialNo) {
        MaterialNo = materialNo;
    }

    public void setMaterialName(String materialName) {
        MaterialName = materialName;
    }

    public void setRFQTY(double rFQTY) {
        RFQTY = rFQTY;
    }

    public void setProductTime(Calendar productTime) {
        ProductTime = productTime;
    }

    public void setStock(String stock) {
        Stock = stock;
    }

    public void setSupplier(String supplier) {
        Supplier = supplier;
    }

    public void setWBSNo(String wBSNo) {
        WBSNo = wBSNo;
    }

    public void setBatchNo(String batchNo) {
        BatchNo = batchNo;
    }

    public void setSerialNo(String serialNo) {
        SerialNo = serialNo;
    }

    public void setAssessmentType(String assessmentType) {
        AssessmentType = assessmentType;
    }

    public void setPartPointID(int partPointID) {
        PartPointID = partPointID;
    }

    public void setPartPointCode(String partPointCode) {
        PartPointCode = partPointCode;
    }

    public void setPartPointName(String partPointName) {
        PartPointName = partPointName;
    }

    public void setRowNo(String rowNo) {
        RowNo = rowNo;
    }

    public String getProductTimeText() {
        return ProductTimeText;
    }

    public void setProductTimeText(String productTimeText) {
        ProductTimeText = productTimeText;
    }

    public String getDemandNo() {
        return DemandNo;
    }

    public String getProductNo() {
        return ProductNo;
    }

    public String getLineName() {
        return LineName;
    }

    public String getCustomerName() {
        return CustomerName;
    }

    public String getPartNo() {
        return PartNo;
    }

    public String getPartName() {
        return PartName;
    }

    public void setDemandNo(String demandNo) {
        DemandNo = demandNo;
    }

    public void setProductNo(String productNo) {
        ProductNo = productNo;
    }

    public void setLineName(String lineName) {
        LineName = lineName;
    }

    public void setCustomerName(String customerName) {
        CustomerName = customerName;
    }

    public void setPartNo(String partNo) {
        PartNo = partNo;
    }

    public void setPartName(String partName) {
        PartName = partName;
    }

    public int getReplaceType() {
        return ReplaceType;
    }

    public String getReplaceTypeText() {
        return ReplaceTypeText;
    }

    public int getOutSourceType() {
        return OutSourceType;
    }

    public String getOutSourceTypeText() {
        return OutSourceTypeText;
    }

    public void setReplaceType(int replaceType) {
        ReplaceType = replaceType;
    }

    public void setReplaceTypeText(String replaceTypeText) {
        ReplaceTypeText = replaceTypeText;
    }

    public void setOutSourceType(int outSourceType) {
        OutSourceType = outSourceType;
    }

    public void setOutSourceTypeText(String outSourceTypeText) {
        OutSourceTypeText = outSourceTypeText;
    }

    public String getBackReason() {
        return BackReason;
    }

    public double getBOMNumber() {
        return BOMNumber;
    }

    public double getPLNumber() {
        return PLNumber;
    }

    public int getDemandID() {
        return DemandID;
    }

    public void setBackReason(String backReason) {
        BackReason = backReason;
    }

    public void setBOMNumber(double bOMNumber) {
        BOMNumber = bOMNumber;
    }

    public void setPLNumber(double pLNumber) {
        PLNumber = pLNumber;
    }

    public void setDemandID(int demandID) {
        DemandID = demandID;
    }

    public String getUnitText() {
        return UnitText;
    }

    public void setUnitText(String unitText) {
        UnitText = unitText;
    }

    public int getUnitID() {
        return UnitID;
    }

    public void setUnitID(int unitID) {
        UnitID = unitID;
    }

    public int getDemandItemID() {
        return DemandItemID;
    }

    public void setDemandItemID(int demandItemID) {
        DemandItemID = demandItemID;
    }

    public int getReturnListID() {
        return ReturnListID;
    }

    public void setReturnListID(int returnListID) {
        ReturnListID = returnListID;
    }

    public int getInspectorID() {
        return InspectorID;
    }

    public void setInspectorID(int inspectorID) {
        InspectorID = inspectorID;
    }

    public String getInspector() {
        return Inspector;
    }

    public void setInspector(String inspector) {
        Inspector = inspector;
    }

    public double getBadNumber() {
        return BadNumber;
    }

    public void setBadNumber(double badNumber) {
        BadNumber = badNumber;
    }

    public double getGoodNumber() {
        return GoodNumber;
    }

    public void setGoodNumber(double goodNumber) {
        GoodNumber = goodNumber;
    }

    public String getBadReason() {
        return BadReason;
    }

    public void setBadReason(String badReason) {
        BadReason = badReason;
    }

    public Calendar getInspectTime() {
        return InspectTime;
    }

    public void setInspectTime(Calendar inspectTime) {
        InspectTime = inspectTime;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    public String getExpirationDate() {
        return ExpirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        ExpirationDate = expirationDate;
    }

    public String getWarehousingDate() {
        return WarehousingDate;
    }

    public void setWarehousingDate(String warehousingDate) {
        WarehousingDate = warehousingDate;
    }

    public String getSupplierLotNumber() {
        return SupplierLotNumber;
    }

    public void setSupplierLotNumber(String supplierLotNumber) {
        SupplierLotNumber = supplierLotNumber;
    }

    public int getItemStockID() {
        return ItemStockID;
    }

    public void setItemStockID(int itemStockID) {
        ItemStockID = itemStockID;
    }
}
